package com.jsoft.jsofted.platform.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jsoft.jsofted.framework.service.CocService;
import com.jsoft.jsofted.platform.entity.ProjectInfoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProjectInfoService extends CocService<ProjectInfoEntity> {

    /**
     * mybatis查询-分页
     * @param projectInfoEntity
     * @return 查询结果
     */
    Page<ProjectInfoEntity>  selectProjectInfoEntityList(Page<ProjectInfoEntity> page,
                                                        ProjectInfoEntity projectInfoEntity);

    /**
     * mybatis插入
     * @param projectInfoEntity
     * @return 插入数量
     */
    int insertProjectInfoEntity(ProjectInfoEntity projectInfoEntity);

    /**
     * mybatis更新(依据id)
     * @param projectInfoEntity
     * @return 更新数量
     */
    int updateProjectInfoEntity(ProjectInfoEntity projectInfoEntity);

    /**
     * 删除
     * @param id
     * @return 删除数量
     */
    int deleteProjectInfoEntityById(Long id);

    /**
     * 删除-批量
     * @param ids
     * @return 删除数量
     */
    int deleteProjectInfoEntityByIds(List<Long> ids);
}
